import pyautogui

pyautogui.moveTo(200, 400, duration=0.5)
pyautogui.moveRel(200, 500, duration=0.5)

pyautogui.typewrite("hello")  # 输入"hello"
pyautogui.typewrite(['a', 'b', 'c'])  # 依次输入"a","b","c"
pyautogui.hotkey('ctrl', 'a')  # 按键 ctrl + a
